home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re spitting a window < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     Re: spitting a window
  2. Sent:        3/28/96 9:04 AM
  3. Received:    3/28/96 9:21 AM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Anyone, this could be documented somewhere in which case just point me there.
  9. >I'm trying to split a window as in MPW. So I thought I'd take an FW_CFrame
  10. >and give it two FW_CFrames as subframes. Somehow this seems wrong because
  11. >then I appear to have one OD frame for both sub FW_CFrames. So I thought I'd
  12. >make the two two subframes FW_CViews...that seems wrong because they do not
  13. >have a FW_CView context for the scroller. 
  14. >
  15. >I cannot figure out how to get another OD frame to attach to a new
  16. >FW_CFrame...
  17. >
  18. >Somehow, I think I am just not getting how all this is supposed to fit
  19. >together. Can anyone point me in the right direction.
  20. >
  21. >Gerry
  22.  
  23. Splitting a window in not yet covered in ODF. The way to do it is to 
  24. apply the OpenDoc recipe directly. Lets say you want to split your frame 
  25. (lets call it CMyFrame). The easiest way is to use a special frame (lets 
  26. call it a CSplitFrame) with a special presentation (CSplitPresentation). 
  27. This frame has to be an embedding frame (subclass of FW_CEmbeddingFrame). 
  28. Inside this frame you should embed two (or more) of your CMyFrame using 
  29. CSplitPresentation::Embed passing the presentation of CMyFrame 
  30. (CMyPresentation) and your part (CMyPart::GetODPart).
  31.  
  32. .......................................................................
  33.  Henri Lamiraux                                      lamiraux@apple.com
  34.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  35. .......................................................................
  36.  
  37.  
  38.